import http from '../utils/http.js'
//获取登录页默认值
export const getWebInfo = (parmas) => {
    return http
        .post("api/user/getWebInfo", parmas)
}
//获取儿童疾病类型
export const getChildrendisease = (parmas) => {
    return http
        .post("api/archives/getDisease", parmas)
}
//用户登录
export const userLogin = (parmas) => {
    return http
        .post("api/user/login", parmas)
}
//获取用户权限
export const getAuth = (parmas) => {
    return http
        .post("api/index/getAuth", parmas)
}

export const resetPwd = (parmas) => {
    return http
        .post("api/user/resetpwd", parmas)
}
//列表
export const archives = (parmas) => {
    return http
        .post("api/archives/index", parmas)
}
// 新增文档
export const archivesAdd = (parmas) => {
    return http
        .post("api/archives/add", parmas)
}

// 编辑文档
export const archivesEdit= (parmas) => {
    return http
        .post("api/archives/edit", parmas)
}

// 获取当前用户菜品
export const getFood = (parmas) => {
    return http
        .post("api/getFood/index", parmas)
}

// 获取当前用户菜品
export const energy = (parmas) => {
    return http
        .post("api/archives/energy", parmas)
}
//获取自定义一日菜品
export const getonediet = (parmas) => {
    return http
        .post("api/archives/getonediet", parmas)
}
// 处理菜品
export const diet = (parmas) => {
    return http
        .post("api/archives/diet", parmas)
}
export const onediet = (parmas) => {
    return http
        .post("api/archives/onediet", parmas)
}
// 获取报告
export const report = (parmas) => {
    return http
        .post("api/archives/report", parmas)
}

export const evaluation = (parmas) => {
    return http
        .post("api/archives/evaluation", parmas)
}
export const GravidaEvaluation = (parmas) => {
    return http
        .post("api/gravida/evaluation", parmas)
}
export const AdultEvaluation = (parmas) => {
    return http
        .post("api/adult/evaluation", parmas)
}

export const setAdvice = (parmas) => {
    return http
        .post("api/archives/setAdvice", parmas)
}
export const getChart = (parmas) => {
    return http
        .post("api/archives/getChart", parmas)
}

// 新增儿童机关
export const childrenCompanyAdd = (parmas) => {
    return http
        .post("api/company/CompanyAdd", parmas)
}

// 儿童机关列表
export const childrenCompanyList = (parmas) => {
    return http
        .post("api/company/index", parmas)
}
// 编辑儿童机关
export const childrenCompanyEdit = (parmas) => {
    return http
        .post("api/company/CompanyEdit", parmas)
}

// 获取当前用户菜品
export const getFoodPackage = (parmas) => {
    return http
        .post("api/company/getFoodPackage", parmas)
}

// 获取团体测评菜品
export const companyEnergy = (parmas) => {
    return http
        .post("api/company/energy", parmas)
}
// 重新获取团体测评菜品
export const resetCompanyEnergy = (parmas) => {
    return http
        .post("api/company/resetCompanyEnergy", parmas)
}

// 团体测评生成报告
export const setCompanyReport = (parmas) => {
    return http
        .post("api/company/setCompanyReport", parmas)
}
// 团体测评保存建议
export const setCompanyAdvice = (parmas) => {
    return http
        .post("api/company/setCompanyAdvice", parmas)
}

export const companyEvaluation = (parmas) => {
    return http
        .post("api/company/companyEvaluation", parmas)
}

export const CompanyReportDel = (parmas) => {
    return http
        .post("api/company/CompanyReportDel", parmas)
}
export const geCompanytChart = (parmas) => {
    return http
        .post("api/company/getChart", parmas)
}

// 孕产妇新增接口
export const GravidaAdd = (parmas) => {
    return http
        .post("api/Gravida/GravidaAdd", parmas)
}
// 慢性病新增接口
export const ChronicAdd = (parmas) => {
    return http
        .post("api/Chronic/chronicadd", parmas)
}


// 孕产妇列表接口
export const GravidayList = (parmas) => {
    return http
        .post("api/Gravida/GravidayList", parmas)
}
//孕妇修改列表接口
export const GravidaEdit = (parmas) => {
    return http
        .post("api/Gravida/GravidaEdit", parmas)
}

// 处理菜品
export const GravidaDiet = (parmas) => {
    return http
        .post("api/Gravida/diet", parmas)
}

// 获取当前用户菜品
export const GravidaEnergy = (parmas) => {
    return http
        .post("api/Gravida/GravidaEnergy", parmas)
}


// 获取成人档案列表
export const AdultList = (parmas) => {
    return http
        .post("api/adult/adultlist", parmas)
}
// 获取慢性病档案列表
export const ChronicList = (parmas) => {
    return http
        .post("api/Chronic/chroniclist", parmas)
}
// 处理菜品
export const AdultDiet = (parmas) => {
    return http
        .post("api/adult/diet", parmas)
}


// 处理菜品
export const ChronicDiet = (parmas) => {
    return http
        .post("api/Chronic/diet", parmas)
}
// 获取当前用户菜品
export const AdultEnergy = (parmas) => {
    return http
        .post("api/adult/AdultEnergy", parmas)
}

// 获取当前用户菜品
export const ChronicEnergy = (parmas) => {
    return http
        .post("api/Chronic/ChronicEnergy", parmas)
}



// 成人新增接口
export const AdultaAdd = (parmas) => {
    return http
        .post("api/adult/adultadd", parmas)
}
// 成人修改接口
export const AdultaEdit = (parmas) => {
    return http
        .post("api/adult/adultedit", parmas)
}
// 慢性病修改接口
export const ChronicEdit = (parmas) => {
    return http
        .post("api/Chronic/chronicedit", parmas)
}


// 成人删除接口
export const AdultaDel = (parmas) => {
    return http
        .post("api/adult/reportdel", parmas)
}